package com.wdd.atcrowdfunding.manager.service.impl;

import com.wdd.atcrowdfunding.bean.AccountTypeCert;
import com.wdd.atcrowdfunding.manager.dao.AccountTypeCertMapper;
import com.wdd.atcrowdfunding.manager.service.CertTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CertTypeServiceImpl implements CertTypeService {
    @Autowired
    private AccountTypeCertMapper accountTypeCertMapper;

    @Override
    public List<AccountTypeCert> getAll() {
        return accountTypeCertMapper.selectByExample(null);
    }

    @Override
    public void insert(AccountTypeCert accountTypeCert) {
        accountTypeCertMapper.insert(accountTypeCert);
    }

    @Override
    public void deleteAll() {
        accountTypeCertMapper.deleteByExample(null);
    }


}
